package com.xy.job.core.api.request

import com.xy.job.core.enums.ScriptType
import kotlinx.serialization.Contextual
import kotlinx.serialization.Serializable
import java.time.LocalDateTime

@Serializable
class JobTriggerParam(
    var jobId: Long,
    var jobInstanceId: Long,
    var jobName: String,
    var jobHandlerName: String,
    val timeout: Long,
    @Contextual
    var dataTime: LocalDateTime,
    var executeParams: String?,
    /**
     * 脚本类型
     */
    var scriptType: ScriptType? = null,
    /**
     * 脚本源代码
     */
    var scriptSource: String? = null,
)